import request from '@/utils/request'

// 查询体力消耗和获取值列表
export function listStaminauser(query) {
  return request({
    url: '/digital/staminauser/list',
    method: 'get',
    params: query
  })
}

// 查询体力消耗和获取值详细
export function getStaminauser(id) {
  return request({
    url: '/digital/staminauser/' + id,
    method: 'get'
  })
}

// 新增体力消耗和获取值
export function addStaminauser(data) {
  return request({
    url: '/digital/staminauser',
    method: 'post',
    data: data
  })
}

// 修改体力消耗和获取值
export function updateStaminauser(data) {
  return request({
    url: '/digital/staminauser',
    method: 'put',
    data: data
  })
}

// 删除体力消耗和获取值
export function delStaminauser(id) {
  return request({
    url: '/digital/staminauser/' + id,
    method: 'delete'
  })
}

// 导出体力消耗和获取值
export function exportStaminauser(query) {
  return request({
    url: '/digital/staminauser/export',
    method: 'get',
    params: query
  })
}